<template>
  <div>
    <!-- 头部信息 -->
    <div class="text-white top-box">
      <div class="content-title flex justify-between items-center">
        <div class="title">欢迎进入三台县委书记、县长信箱！</div>
        <div>
          <el-form :inline="true" :model="formInline" class="text-white">
            <el-form-item label="用户名">
              <el-input v-model="formInline.user"></el-input>
            </el-form-item>
            <el-form-item label="密码">
              <el-input v-model="formInline.pas"></el-input>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click="onSubmit">登录</el-button>
            </el-form-item>
          </el-form>
        </div>
      </div>
    </div>
    <img src="@STmailboxesWeb/assets/imgs/banner@2x.png" alt="" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      formInline: {
        user: "",
        region: "",
      },
    };
  },
  methods: {
    onSubmit() {
      console.log("submit!");
    },
  },
};
</script>

<style lang="scss" scoped>
::v-deep {
  .top-box {
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, #3a8edc 0%, #2463b8 100%);
    position: relative;
    .content-title {
      width: 1000px;
      position: absolute;
      margin: auto;
      top: 0px;
      left: 0px;
      bottom: 0px;
      right: 0px;
    }
  }
  .title {
    font-size: 14px;
  }

  .el-form-item {
    margin: 0px;
    margin-left: 18px;
  }
  .el-form-item__label {
    color: #fff;
    font-size: 14px;
    margin-right: 8px;
  }
  .el-input__inner {
    width: 100px;
    height: 28px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #d8e0e7;
  }
}
</style>